package gui.detail.relation;

import javax.swing.*;

/**
 * Created by:  Jason Ye
 * Date:        15/02/2012
 * Time:        14:32
 */
public class AttributeWidget extends JPanel {

    // attribute values
    private JLabel attributeTypeValue;
    private JLabel attributeNameValue;
    private JLabel attributeMaxSizeValue;
    
    public AttributeWidget(String attType, String attName, int attMaxSize){

        attributeTypeValue =new JLabel(attType);
        attributeNameValue =new JLabel(attName);
        attributeMaxSizeValue = new JLabel(Integer.toString(attMaxSize));

        //layout
        BoxLayout layout = new BoxLayout(this, BoxLayout.LINE_AXIS);
        this.setLayout(layout);

        // add labels to the panel
        this.add(attributeTypeValue);
        this.add(attributeNameValue);
        this.add(attributeMaxSizeValue);


    }




    


}
